package com.atguigu.gulimall.auth.feign;

import com.atguigu.common.utils.R;
import com.atguigu.gulimall.auth.vo.UserLoginVo;
import com.atguigu.gulimall.auth.vo.UserRegisterVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author SuperSong
 * @version 1.0.0
 * @ClassName gulimall.com.atguigu.gulimall.auth.feign.MemberFeignService.java
 * @Description TODO
 * @createTime 2021年07月31日 13:05:00
 */
@FeignClient("gulimall-member")
public interface MemberFeignService {

    @PostMapping(value = "/member/member/regist")
    R regist(@RequestBody UserRegisterVo vo);


    @PostMapping(value = "/member/member/login")
    R login(@RequestBody UserLoginVo vo);
    //
    // @PostMapping(value = "/member/member/oauth2/login")
    // R oauthLogin(@RequestBody SocialUser socialUser) throws Exception;
    //
    // @PostMapping(value = "/member/member/weixin/login")
    // R weixinLogin(@RequestParam("accessTokenInfo") String accessTokenInfo);
}
